<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <h1>修饰符</h1>
    <div class="big" @click.capture="bigClick">
      <div class="small" @click="smallClick">click</div>
    </div>
    <div class="small" @click.once="bottomClick">click</div>
    <input type="text" @keyup.space.tab="enterUp">
    <br>
    <span @click.ctrl="crtrClick">修饰符</span>
    <br>
    <input @keyup.ctrl.space="ctrlSpace">
  </div>
  <script src="../js/vue.js"></script>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        
      },
      methods: {
        bigClick() {
          console.log('big')
        },
        smallClick() {
          console.log('small')
        },
        bottomClick() {
          console.log('bottom')
        },
        enterUp() {
          console.log('13')
        },
        crtrClick() {
          console.log(111)
        },
        ctrlSpace() {
          console.log(6666)
        }
      },
    })
  </script>
</body>
</html>